package cn.mihoyo.base.util;

import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class GenerateId {

    public static String generateId() {
        String uuid = UUID.randomUUID().toString().replace("-", "");
        return uuid.substring(0, 8);
    }
}
